# -*- coding: utf-8 -*-
import yagmail

# DFUAOOGKVJLXWJVX
# 连列邮箱服务器
connect = yagmail.SMTP(
    user="itwangqiang@163.com",
    password="DFUAOOGKVJLXWJVX",
    host="smtp.163.com",
)


def send_gmail(receiver, contents):
    """发送邮件"""
    connect.send(
        to=receiver,
        subject="运维报告",
        contents=contents
    )


# send_gmail("itwangqiang@126.com", "这是来自itwangqiang@163.com的邮件")
